Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect custom fields in custom beats #8397

Merged
merged 2 commits into from
Sep 25, 2018

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Sep 22, 2018

Include _meta/fields.yml in the list of common fields, so fields defined in custom beats are used.

Current fields generator is checking for fields in _meta/fields.common.yml, but not on _meta/fields.yml, where custom beats have their fields by default.

Alternativelly we could move generator/beat/{beat}/_meta/fields.yml to generator/beat/{beat}/_meta/fields.common.yml, but in any case this change could be good for existing beats that have their fields in _meta/fields.yml.

There are users reporting problems with fields in custom beats that could be caused by this:

@jsoriano jsoriano added discuss Issue needs further discussion. review libbeat new beat :Generator Related to code generators for building custom Beats or modules. labels Sep 22, 2018
@jsoriano jsoriano requested a review from kvch September 22, 2018 12:57
@jsoriano jsoriano added needs_backport PR is waiting to be backported to other branches. v7.0.0-alpha1 v6.5.0 v6.4.2 labels Sep 23, 2018
@kvch
Copy link
Contributor

kvch commented Sep 24, 2018

I think you need to run make update to update all assets.

@jsoriano
Copy link
Member Author

I couldn't see any change with make update. I have updated the branch with #8401 for the tests that were failing.

@jsoriano jsoriano merged commit ac6a9fb into elastic:master Sep 25, 2018
@jsoriano jsoriano deleted the custom-beat-fields branch September 25, 2018 08:12
jsoriano added a commit to jsoriano/beats that referenced this pull request Sep 25, 2018
@jsoriano jsoriano added v6.5.0 and removed needs_backport PR is waiting to be backported to other branches. labels Sep 25, 2018
jsoriano added a commit to jsoriano/beats that referenced this pull request Sep 25, 2018
jsoriano added a commit that referenced this pull request Sep 25, 2018
jsoriano added a commit that referenced this pull request Oct 16, 2018
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Issue needs further discussion. :Generator Related to code generators for building custom Beats or modules. libbeat new beat review v6.4.2 v6.5.0 v7.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants